package com.pruebas.xmlsimple.model;

import java.util.List;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name="campeonato")
public class Competition {
	
	@Element(name="nombre")
	private String name;
	@Element(name="fechas")
	private String fixtures;
	@ElementList(name="liga")
	private List<Team> teams;

	
	public List<Team> getTeams() {
		return teams;
	}

	public void setTeams(List<Team> teams) {
		this.teams = teams;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFixtures() {
		return fixtures;
	}
	public void setFixtures(String fixtures) {
		this.fixtures = fixtures;
	}
	
	

}
